import {
	httpPost,
	httpGet
} from "../utils/request"

// 手机密码登录
export const passwordLoginApi = (data) => {
	return httpPost('/residents/login', data)
}
// 根据token获取用户信息
export const getInfoByTokenApi = () => {
	return httpGet('/residents/getUserInfo')
}
// 注册  
export const registerApi = (data) => {
	return httpPost('/residents/register', data)
}
// 微信授权登录 
export const loginByWeixinApi = (data) => {
	return httpPost('/residents/loginByPhone', data)
}